package com.jkoss.wine.investment.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.afterturn.easypoi.excel.annotation.Excel;

import com.baomidou.mybatisplus.activerecord.Model;


/**
 * 招商信息
 * 
 * @Author Jason
 * @Version 1.0, 2019-08-07
 * @See
 * @Since com.ossjk.oa.major.entity
 * @Description: TODO
 */
public class Investment extends Model<Investment> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 姓名
     */ 
    @TableField("name")
    @Excel(name = "客户姓名",orderNum = "2")
    private String name;
    /**
     * 日期
     */
    @TableField("date")
    @Excel(name = "招商日期",orderNum = "3",format="yyyy-MM-dd")
    private Date date;
    /**
     * 时间
     */
    @TableField("time")
    private Date time;
    /**
     * 电话
     */
    @TableField("phone")
    @Excel(name = "手机号码",orderNum = "4")
    private String phone;
    /**
     * 其他联系方式
     */
    @TableField("other")
    private String other;
    /**
     * 地区名称
     */
    @TableField("area_name")
    @Excel(name = "所在地区",orderNum = "6")
    private String areaName;
    /**
     * 地区编号
     */
    @TableField("area_code")
    private String areaCode;
    /**
     * 客户来源
     */
    @TableField("source")
    private String source;
    /**
     * 状态：1-未联系[新增信息默认]、2-跟进中[只要有跟进记录即自动换成跟进中，普通帐号不设置修改权限]
     */
    @TableField("state")
    @Excel(name = "跟进状态",orderNum = "9",replace = {"未联系_1","跟进中_2"})
    private Integer state;
    /**
     * 客户意向(系统管理处可以自主设置客户意向标签，然后此处选择修改，下拉ABCDE)
     */
    @TableField("intent")
    private String intent;
    /**
     * 下一次跟进时间(自主设置，设置完成后不能修改)
     */
    @TableField("ntfw")
    private Date ntfw;
    /**
     * 跟进人
     */
    @TableField("maid")
    private String maid;
    /**
     * 性别
     */
    @TableField("sex")
    @Excel(name = "性别",orderNum = "13",replace = {"男_1","女_2"})
    private Integer sex;
    /**
     * 招商类型，根据系统设置：itmt_type
     */
    @TableField("type")
    @Excel(name = "招商类型",orderNum = "14")
    private String type;
    /**
     * 备注1
     */
    @TableField("remk1")
    private String remk1;
    /**
     * 备注2
     */
    @TableField("remk2")
    private String remk2;
    /**
     * 备注3
     */
    @TableField("remk3")
    private String remk3;
    /**
     * 备注4
     */
    @TableField("remk4")
    private String remk4;
    /**
     * 备注5
     */
    @TableField("remk5")
    private String remk5;
    /**
     * 当操作人为null时，表示自动录入
     */
    @TableField("operator")
    private String operator;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否删除：0-未删除、1-已删除、2-不能删除
     */
    @TableField("del")
    private Integer del;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }


    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getIntent() {
        return intent;
    }

    public void setIntent(String intent) {
        this.intent = intent;
    }

    public Date getNtfw() {
        return ntfw;
    }

    public void setNtfw(Date ntfw) {
        this.ntfw = ntfw;
    }

    public String getMaid() {
        return maid;
    }

    public void setMaid(String maid) {
        this.maid = maid;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemk1() {
        return remk1;
    }

    public void setRemk1(String remk1) {
        this.remk1 = remk1;
    }

    public String getRemk2() {
        return remk2;
    }

    public void setRemk2(String remk2) {
        this.remk2 = remk2;
    }

    public String getRemk3() {
        return remk3;
    }

    public void setRemk3(String remk3) {
        this.remk3 = remk3;
    }

    public String getRemk4() {
        return remk4;
    }

    public void setRemk4(String remk4) {
        this.remk4 = remk4;
    }

    public String getRemk5() {
        return remk5;
    }

    public void setRemk5(String remk5) {
        this.remk5 = remk5;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

	public String getareaName() {
		return areaName;
	}

	public void setareaName(String areaName) {
		this.areaName = areaName;
	}

	public String getareaCode() {
		return areaCode;
	}

	public void setareaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	@Override
	public String toString() {
		return "Investment [id=" + id + ", name=" + name + ", date=" + date + ", time=" + time + ", phone=" + phone
				+ ", other=" + other + ", areaName=" + areaName + ", areaCode=" + areaCode + ", source=" + source
				+ ", state=" + state + ", intent=" + intent + ", ntfw=" + ntfw + ", maid=" + maid + ", sex=" + sex
				+ ", type=" + type + ", remk1=" + remk1 + ", remk2=" + remk2 + ", remk3=" + remk3 + ", remk4=" + remk4
				+ ", remk5=" + remk5 + ", operator=" + operator + ", addTime=" + addTime + ", del=" + del + "]";
	}

}
